added loop interval setter