Create new method for duplicated code