Fixed lagging speaker code, need to better organize functions and material. Provided code is a bit of a mess