Update the construct function