Added var to define download ratio safety factor instead of putting value inline
Added ability to toggle on/off the logging to browser console.