Missed one thing aboud main function. Fixed.