Deleted redundant code