Fixed error & allows passing cutoff sizes