Add dependency to constructor