Improved format and added useful patterns.