Error checking, optimization and CSS errors