I wonder if there's a better way to do this. This feels a bit dirty.