Added support for collision layers