Added code to return value from methods.