Adding limit variable to limit the records returned