Template for leap input and basic editing code.