Created generic setup method for different initialization methods