How do I customize sharding script such as Lua?