Code partially working. Services not working