Method to support checking if more is already available
Removing nested functions and making them methods of class instead.