Added functions, constants and factorial support.