Adding maxFiles limit