Added method call to the external script and minor bug fixes.