Ported the pony function to centinel