minor_update
Added some convenience and portability functions.