Debugged string/buffer lengths. Should work in kernel now.