Use $app instead of $1, closes #1.