Declare var cad5 as a function