FINISHED LOGIC FOR MILKING ACTIVITY.