Add allocated time
Refactor