Move 'fortune cookie' functionality into module