Fixed failing assert, removed writelns.