Update master.lua

Added a clock function for sychronizing purposes.