Properly swap out functions.