Add ref to the constructor