Various utility routines. Utility routines perform simple functions and may
be called in order to make writing complicated device specific routines easier.
