Latesteq 183

Fixed period and status so that they work correctly and cleaned up code.