Moved init code out of __contruct