Copied Athens-Core class from Athens.