Added init functionality