working on getting rid of hard-coded sizes.
working on getting rid of hard-coded sizes.