Start core-ui
Turn macro into function
Fix bug preventing some interop calls from working