Refactored Gatemanagement and Paymanagement for remoting object.