Todo: add nested conditionals.