First attempt to wait_queue implementation