Simplified add executable snippet and made to work based on experience.