Move it to a common method