Creating a custom BSP layer