Completed - ToDo: Add randomized encoded function for 'Poisoned Flags'