Added culling to configuration and main functions