Optimization Code to push to server