Added brightness function