Added add button and debugged it.