Added selection mode, added uploading to lambda