Moved the supplementary accelerometer and notification functions into separate files