Removed duplicated source code