Fixing up an error where the variable $alignment wasn't being defined.