Modified boxel to use a variable dimension