Implemented TimePicker, model and deviceActivity refactoring.