Simplify the code and make it less nasty