Started work on amplitude detection