Implemented media triggers. Closes #26.