I think this should be in a separate file somewhere.... juts to make sure we have it reusable