Using a configure file to reduce the number of layers