Added brightness calc