Refactored variable
Updated error program definition