replaced pause with sleep for further compatibility to other engines