Ok, it felt a bit dirty putting this here, will take a look at something better