Updates to adapt to Julia changes (immutable types and removal of
function composition).