Adding the awful code