Moved completed_in computation