Added basic analog sampling