Adjust loader macro to pass options to constructor