Task: Remove array prototypes from directive and implement differently.