I will refactor to a common bit :)