Setting initial configurations