Forgot to mention the resulting funtion.