Cleaned code. Also, now it doesn't matter if amount of AFC and NFC values is different.