Added parameter 'deleted' and fixed it's default value to '0'