Optimized and removed unnecasary code.