Updated readme.
Extracted method.