Add more comments
Do not use a global variable for common prefix
Remove parentheses