Started converting entity smh functions into one object