Refactors init()