First working version with support idle and user time