Better code that does the same