Improved platformbehaviour. Still not perfect though.