Trying to get deviceready to work