Implemented "Wait for Instance to be ready" functionality