Yeah I don't like this too, but it was just a quick hack to get this working. It should definitely be changed for the final implementation.