Added helper.jl to validate function inputs.