Added init and tail methods.