Prolly should do this locally not on a server