Deleted unused code and fixed usage of 10 literal