Probably a bad way, but works for now