Refine code, autorelease variables