This seems like it could be problematic, is there no better way to do this?