Modified code based on code review comments on SLIDPRE-8.