Created methods to clarify code further