Deleted duplicated code.