Implemented the handler code for macallowremote access