Trimmed away unnecessary code