Add room filter to  algorithm #167