Started moving platform detection code out