Copying llc's source code ftw.