Removed device side code; Code reviewed.