Implemented wait command