Added the port parameter passed to lua scripts.