Instead, by 1884 he was working as an office clerk in the head office of the Swedish railways, and in 1899 he married a Danish teacher, Jeanne Rye.