Use defined variable, instead of calculating it twice