Updated user apply code to die if the current instance cannot be found