Added a return values function.