Added functionality to display doubles and singles. Bug present in doubles.