Removed warning for a return not being inside a function
Added cache
Use returned value as output of the program