Update pathway get and set methods.

Still not working as intended, but this fixes ‘cannot push to object’
error.