Refactor code
Extra docs
Extract function from plugin