UPD: Used Lists instead of Arrays
WIP: THIS IS A WORK IN PROGRESS COMMIT. PLUGIN IS BROKEN!