I'm looking into how to do this in a better way because I don't think this is a good solution.