Tinkering with previous/next. Code is horrible.