Added GetFileSize to ReadBinary and Re-organized beam scan