Added a parameter for vibrate