Removing a little repeated code, pop, peek return jids now