Good idea with this separation of responsibilities between two functions!