Copied stuff into more files for readable code