Updated init script to run as foreground