Fixed style issues, and adapted acceptRequest to use the postPromise helper