Increase performance by using classes instead of a custom selector