Method works when checked against sample data