Added init function.