Created basic API for stats