Added some @autoreleasepools to help with memeory