changed agent times and refactored program creation