(f) 'pin' plugin

Fixed "base line" calculation, broken in the previous commit.