Bugfixes and as() method