Added checking for functions with a predetermined output.