Added a return statement in table result