Switch to passing in attrs in constructor.