Changed Run Loop mode to NSRunLoopCommonModes