Slight change how the layers are send towards the frontend.