Algorithms: Preventing Automated Discrimination