Split off comet.lua