Put helpers seperately, make encoding clearer