Removed duplicated code :/