Refactored init() functions down into one, single function. Simplified initialization flow