Started depad function