added delay for raspberry pi