Clientside code and additional TODO.