Added dynamic field initialization