Made code repeatable. Tomorrow need to make html template smart.