Rewrote to handle arrays of strings
Removed console.logs
Merged changes from frontend