Modularise the rastering.