Extended Rule library and XMLHandler (for testing).