Trimmed unnecessary code.