Fixed script parser to now be able to call functions from functions