Cleaned and commented + added first filter