Fixed incorrectly-named $opts parameter in four functions.

Looks like $opts had been renamed to $opt in some functions and as such the functions failed.