Deleted unused previous code