Removed unused variable addDate