Removed Ruby warning by not shadowing opt variable anymore.