Simplifying setting of open/close tags