Update module functions for appending rules and tags