Top offset value changed to not use var