Everything now working, bar the recording of stats