Commit
1ba0f28d3d8a838476c27645628f49e4a4a6dc02
by Casper ThuleAlmost working for rate.sa as well. Need to fix sourcedependency. A
canonical version has been hand-made, as the canonicalgenerator was not
able to handle it. Fixed an issue in canonicalgenerator where
CurrentTime was not used.
Refactored.