Created a seperate method for assertions