Only update the sail every twenty seconds
merged changes on pi