Refactoring to interface
Refactor native vibrate to accept int