Adding main and a to reset