Porn: determine k