Some refaction in order to start implementing rendering based on front difference.