Updated PlatformLayer.java