Added sparse option