Removed dependency on xprintf