Request wait thread added

Just code frame. Nothing has been implemented yet.