Code Refactor

Replaced funky implode. Fixes rSKfa4dc05a07fa