Fixed end function command