Use a unique function to sensitive actions.. and clean the code a bit..