Implemented nxt wait for buttons block