Deal with periods correctly