Implemented a modal which hopefully works this time.