Adding main.c with sofware delay