I'm not entirely sure I converted this correctly. Someone please double-check.