BUG: Used double for index.