Changed the scope to make it easier to extend this class.