Added brightness check