Some changes in Api Controller for report purpose.