Added an "already running" check to the wrap script