Fixed trappeds errors

Define new commands is now much easier