Fix bug and update.
Rename module.fnc to module.sh for syntax highlight.