Implemented arbitrary panel numbers