Would be good to add a try catch here