Change default value to 10s.
Fix NAN error