Add _setup method

This pull request adds