Seems like an overuse of END clause... Why don't you use a startup method to do this?