Separate alert script from bash profile.
Move persevere into an independent script.