Base constructor to ease prototype inheritance.