Fixed size getter function. Added error logging to execution loop, now returns a buffer of last error message(s) on failure.