Dynamically update perform method after definition