Added method to return output.