Updated the remote library to handle better remote commands