Fixed slowdown with door minimization code