Added init and tail
Added index