Removed dependency on sys