Fixed predict_whistler to work for multiple layers.