Fixed #3 causing multiple patterns not to work. Closes #4.