Isn't this duplicated code?