Added a way to precheck parameters before using callbacks