Delete unused classes
Add enum of errors and clever frontend ticks