def METHOD_NAME(MainFrame, scope):
    from PYME import config
    from PYME.Acquire.Utils.failsafe import FailsafeClient
    address = config.get('interlockserver-address', '127.0.0.1')
    port = config.get('interlockserver-port', 9119)
    scope.METHOD_NAME = FailsafeClient(address, port)