Duplicated code.