Added pseudo-__construct-function