Simplified script

Using fx.now for saving the calculated values instead of writing
uber-length lines.