Added main function for dacs app