Added configurable block and thread sizes.