Removed dependency on smprintf and status now works