Work and State Functions