We could do with finding a better way to do this but it works for now.