Rewrote css processor to be more robust