Finished initial index-based function implementation (Closes #23).