Remove debugs and initialize waiting value