Added skeleton function for saving threshold