Enhanced the dancing flames module to work with layers