Making random encounters obey filters, and adding unaligned option for alignment filter