Added code to determine inefficiencies