All calculations added to kernel