Neaten get-latest function