Created some methods to make it more organized.