Fixed bug with functions with no paramters