Added basic player storage functions and improved CS handler.