Fixed return value for function (command) calls