Added condition that only try-end can be between invoke and move-result
Removed debug prints