Added new structs to support the wait method.
Added wait constants.
Added functions to support the wait method.