Prefixed some functions with globalpay to avoid conflict with other plugins