Added indexOf function.