Added helper functions to simplify syntax for getting offsets and sizes of sources