Adding lego plot script and modifying wrapper to invoke it.