Turn simpleSource into a pure function