Small changes to be more like Arduino version.