Got long duration code working