Moved block constructor upwards