Mod GCM function and arrange needless files