Moved period stuff to api/server