Split to be easy for tests