Move recipe to function, move main body to main function