Added defaultScope functionality