Imported better code.