Rebased: Handle invalid timing function params