Better procedural directives processing (fix #6)