Housekeeping: Oldschool dirname(__FILE__) replaced with __DIR__ ;)