Fix tuple formatting in function definition