Set duration and similarity