Add isProgramActive method to check if a program is started of not