used numpy functions instead. added profiler for acquisition.