Created metheods to make the class neater.