You might want to look up the $read() identifier. You will save time and the outcome will be the same.