Updated for Nette 2.2