Added junk code to cater to the the groups being uneven :)
Again WA