Refactored several method calls into setup method