Make it work in rack mode