Add init method to avoid needing to use constructor in DI