Re-arranged to work.
Fixed bug in accept and request methods.