Change ret type back to int.