Edited out some code that isnt necessary