First draft of functions and mq mixin.