Redirecting to Loss function