Edited some of the code for Stuyablo for better functionality