Not entirely sure this is the correct way to do this