Changed method names and parameters.
Added example (untested).