Added index manipulation

Added index manipulation as described in #11.