Compleeted the pattern table functionality.