Added time to set layout