Still working on implementing this and hoping this is going to work as intended