Added logout and run energy