Add check function.