Added rate calculationg to flows