This currently uses the following mapping: -1 : internal; for retrieving command info, sending commands, etc. 0 : success 1 : error