Finish the implementation of module key and module key checking, urrahh