Adds subs for megachip