Removed dependencies on the SGL class.