Switched function order