Moved after_success to seperate file