Cleaned up mybugs code