I'm not sure if there is a better solution.